<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta data-th-replace="common/meta :: meta">
    <title>格物数据后台管理平台</title>
    <link rel="stylesheet" data-th-replace="common/Link :: link">
</head>
<body class="js-route-flag js-roles">
<div class="container-fluid basePadding">
    <div class="row">
        <div class="row">
            <div class="col-md-6 col-xs-7">
                <form class="form-inline roleForm">
                    <div class="form-group">
                        <input type="text" class="form-control" id='setRole' placeholder="输入角色名">
                    </div>
                    <button type="submit" class="btn btn-gew" id="search"><i class="fa fa-search"></i>检索</button>
                </form>
            </div>
            <div class="col-md-6 col-xs-5">
                <button class="btn btn-gew pull-right" type="button" id="editRolePower"><i class="fa fa-users"></i>授权</button>
                <button class="btn btn-gew pull-right addBtn" type="button" id="addRoles"><i class="fa fa-plus"></i>添加</button>
            </div>
        </div>
        <div class="table-responsive marginTop">
            <table class="table table-hover" id="bootstrapTable"></table>
        </div>
    </div>
    <!--添加以及修改-->
    <div id="myRolesModal" class="hidden-gew">
        <form class="form-horizontal">
            <div class="box-body">
                <div class="form-group">
                    <label for="rolesName" class="col-sm-2 control-label">角色名称</label>
                    <div class="col-sm-10">
                        <input type="text" required="" aria-required="true" class="form-control" id="rolesName" placeholder="请输入角色名称...">
                    </div>
                </div>
                <div class="form-group">
                    <label for="distribute" class="col-sm-2 control-label">角色描述</label>
                    <div class="col-sm-10">
                        <input type="text" required="" aria-required="true" class="form-control" id="distribute" placeholder="请输入角色描述...">
                    </div>
                </div>
            </div>
            <div class="box-footer">
                <button type="submit" id="btn_save" class="btn btn-gew"><i class="fa fa-floppy-o"></i>保存</button>
                <button type="button" class="btn btn-default-gew btn_close"><i class="fa fa-times"></i>关闭</button>
            </div>
        </form>
    </div>
    <!--授权-->
    <div id="rolePower" class="hidden-gew rolePower">
        <div class="box-content">
            <div class="box-body">
                <div class="table-responsive">
                    <table class="table table-hover" id="rolePowerTable"></table>
                    <div id="power"></div>
                </div>
            </div>
        </div>
        <div class="box-footer">
            <button type="button" class="btn btn-gew" id="sureRole"><i class="fa fa-plug"></i>授权</button>
            <button type="button" class="btn btn-default-gew btn_close"><i class="fa fa-times"></i>关闭</button>
        </div>
    </div>
<script data-main="js/main.js" src="js/lib/require.min.js" defer async="true"></script>
</body>
</html>